import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserPermissionService } from './user-permission.service';
import { SysUserWithRoleEntity } from '../user/entities/user-width-role.entity';
import { SysRoleWithMenuEntity } from '../role/entities/role-width-menu.entity';
import { SysMenuEntity } from '../menu/entities/menu.entity';
import { SysRoleEntity } from '../role/entities/role.entity';

@Module({
  imports: [TypeOrmModule.forFeature([SysUserWithRoleEntity, SysRoleWithMenuEntity, SysMenuEntity, SysRoleEntity])],
  providers: [UserPermissionService],
  exports: [UserPermissionService],
})
export class UserPermissionModule {}
